#ifndef __MAP_H__
#define __MAP_H__

#include <slab.h>
#include <string.h>
#include <error.h>
#include <sched.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <kio.h>

#define dafsf

struct pair
{
	uintptr_t first;
	uintptr_t second;
};

struct map
{
	int len;
	struct pair arr[20];
};

extern void map_init(struct map *mp);
extern void map_free(struct map *mp);
extern int map_get(struct map *mp, uintptr_t addr);
extern int map_put(struct map *mp, uintptr_t addr);

extern void map_setvalue(struct map *mp, uintptr_t addr, uintptr_t value);
extern uintptr_t map_getvalue(struct map *mp, uintptr_t addr);

#endif
